/**
 * Copyright � 2012 GestureSoft. ALL RIGHTS RESERVED.
 * This file contains proprietary and GestureSoft CONFIDENTIAL Information.
 * Use, disclosure or reproduction is prohibited.
 * 
 * @fileName CustomErrorEvent.as
 * @creationDate Aug 16, 2012
 * @author 
 * @version 1.0
 */
package com.gesturesoft.imultimax.events
{
	import flash.events.Event;
	
	public class CustomErrorEvent extends Event
	{
		
		public static const ERROR_OCCURED:String = "error_occured";
		
		private var _errorString:String;
		
		public function CustomErrorEvent(type:String, error:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			
			super(type, bubbles, cancelable);
			_errorString = error;
			
		}
		
		override public function clone():Event 
		{
			
			return new CustomErrorEvent(type, errorString, bubbles, cancelable);
			
			
		}
		
		public function get errorString():String
		{
			
			return _errorString;
			
		}
		public function set errorString(val:String):void
		{
			
			_errorString = val;
			 
		}
		
	}
}